package com.nuo.quartz.beans.pojo.request;

import com.nuo.common.core.page.BasePageQuery;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 任务分页查询
 *
 * @author LGC
 */
@ApiModel(value = "QuartzJobPageQueryReqDTO", description = "任务分页查询")
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class QuartzJobPageQueryReqDTO implements Serializable {

    private static final long serialVersionUID = -7921130535756874655L;

    @ApiModelProperty(value = "任务ID")
    private Integer jobId;

    @ApiModelProperty(value = "任务模式 1.bean模式  2.http模式")
    private Integer jobMode;

    @ApiModelProperty(value = "jobMode =1: 执行Bean名称,jobMode =2:调度接口地址，一般为开放接口")
    private String beanName;

    @ApiModelProperty("分页查询对象")
    @NotNull(message = "分页参数不能为空")
    private BasePageQuery page;
}
